<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片精灵</title>
    <style>

        div{
            width: 110px;
            height: 110px;
            background-color: red;
            background-image: url(icons.jpg);
            background-size: 1100px 1100px;
            background-repeat: no-repeat;
        }
        div:nth-child(1){
            background-position: 0 0;

        }
        div:nth-child(2){
            background-position: -110px 0;
        }

    </style>
</head>
<body>
    <div>
        
    </div>
    <div>

    </div>
</body>
</html>